package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 简单触发器
 *
 * @author remon
 * @create 2018-09-04 16:31
 **/
@Entity
@Table(name = "QRTZ_SIMPLE_TRIGGERS")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SimpleTrigger {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;
    /**
     * 触发器名称
     */
    @Column(name = "TRIGGER_NAME")
    private String triggerName;

    /**
     * 触发器组别
     */
    @Column(name = "TRIGGER_GROUP")
    private String triggerGroup;

    /**
     * 重复次数
     */
    @Column(name = "REPEAT_COUNT")
    private Integer repeatCount;

    /**
     * 重复间隔时间
     */
    @Column(name = "REPEAT_INTERVAL")
    private Integer repeatInterval;

    /**
     * 出发次数
     */
    @Column(name = "TIMES_TRIGGERED")
    private Integer timesTriggered;

}
